/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package binh;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author ADMIN
 */
public class CAppMgr
{

    private List<CApp> GameList = new ArrayList<>();    
    

    public CApp GetGameListByID(int AppId)
    {
        for (int i = 0; i < GameList.size(); i++)
        {
            if (GameList.get(i).GetAppID() == AppId)
            {
                return GameList.get(i);
            }
        }
        return null;
    }
    
    public void AddGameNet(CApp GameNet){
        GameList.add(GameNet);
    }

    public int GetMaxGame()
    {
        return GameList.size();
    }

    public CApp GetGameByIndex(int index)
    {
        return GameList.get(index);
    }   

    void RemoveBot(CClient Client)
    {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
